package cn.yuxiaoyuan.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author solargen
 * @version 1.0
 * @date 2025/6/16 10:26
 */
@Data
@ConfigurationProperties("spring.wechat")
public class WechatProperties {
    private String appid = "wxdb418f0dbafb8fe1";
    private String appsecret = "a19c8c4670427a46379fafb9a7158070";
    private String accesstokenurl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s";
    private String phonenumberurl = "https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=%s";
    private String openidurl = "https://api.weixin.qq.com/sns/jscode2session?appid=%s&secret=%s&js_code=%s&grant_type=authorization_code";
}
